package qunartest;


import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class Test {


    public static void main(String[] args) {

        BookingBean bookingBean = new BookingBean();
        bookingBean.setName("wzp");

        OneBookingDetail result = new OneBookingDetail();
        result.setBookingBean(bookingBean);

        result.getBookingBean().setName("wzp1");

        System.out.println(bookingBean.getName());

        List<BookingBean> bookingBeanList = new ArrayList<>();
        bookingBeanList.add(bookingBean);
        bookingBeanList.addAll(null);

        List<String> collect = bookingBeanList.stream().map(BookingBean::getName).collect(Collectors.toList());

        System.out.println(collect.toString());

    }
}
